"use strict";
var Gouzao;
(function (Gouzao) {
    class MyClass {
        constructor(num1, uname) {
            this.num1 = num1;
            this.uname = uname;
        }
        sayhi() {
            return 'sda';
        }
    }
    function createInstance(ctor, num1, uname) {
        return new ctor(num1, uname);
    }
    const instance = createInstance(MyClass, 1, 'example');
    console.log(instance.sayhi()); // 输出: sda
    class zks {
        constructor(a, b) {
            this.a = a;
            this.b = b;
        }
        hasZks(a) {
            return a;
        }
    }
    function createIn(ctor) {
        return new ctor('1', '2');
    }
    createIn(zks);
})(Gouzao || (Gouzao = {}));
